package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 预警历史记录业务对象 warning_history
 *
 * @author ruoyi
 * @date 2024-05-03
 */

@Data
public class WarningHistoryBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 预警id
     */
    @NotNull(message = "预警id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warningId;

    /**
     * 预警去往id
     */
    @NotBlank(message = "预警去往id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warningToId;

    /**
     * 业务id
     */
    @NotNull(message = "业务id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ownerId;

    /**
     * 业务类型
     */
    @NotBlank(message = "业务类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ownerType;

    /**
     * 通知类型
     */
    @NotBlank(message = "通知类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 预警时间
     */
    @NotNull(message = "预警时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date warningTime;


}
